export const rules = {
  login_account: [
    {
      required: true,
      message: '用户名是必传内容',
      trigger: 'blur'
    },
    {
      pattern: /^[a-zA-z0-9]{3,}$/,
      message: '用户名必须是5-10个字母或数字',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '密码是必传内容',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{3,}$/,
      message: '密码必须是3个字母或数字以上！',
      trigger: 'blur'
    }
  ],
  captcha: [
    {
      required: true,
      message: `验证码是必传内容`,
      trigger: `blur`
    },
    {
      pattern: /^[a-zA-Z0-9]{4}$/,
      message: '验证码错误！',
      trigger: 'blur'
    }
  ]
}
